﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework;

namespace MainGame.GameForm
{
    public class PreNextRound : FormControl
    {
        public PreNextRound(ContentManager content)
            : base(content)
        {
        }
        protected override void Paint(Microsoft.Xna.Framework.GameTime gameTime, Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, object extraData)
        {
            base.Paint(gameTime, spriteBatch, extraData);
            Vector2 next = Vector2.Zero;
            if (this.Game.Index > 0)
            {
                spriteBatch.DrawString(Round.font, "YOU ARE WIN, PLAY NEXT ROUND", this.Position, Color.White);
                next += new Vector2(0, 50);
            }
            spriteBatch.DrawString(Round.font, "Round : " +( MainGame.CurrentRoundInfo.Index), this.Position + next, Color.White);
            spriteBatch.DrawString(Round.font, "Target Score : " + MainGame.CurrentRoundInfo.Score, this.Position + new Vector2(0, 50) + next, Color.White);
        }

        public void Play()
        {
            this.Game.Play();
        }
    }
}
